package registnet.records;

public class CurriculumCourse extends AbstractCourse {
	
	private Curriculum curriculum;

	
	/**
	 * Constructs a curriculum course with the given parameters
	 * 
	 * @param courseCode - The code assigned to the course
	 * @param curriculum - The curriculum to which the course is used
	 * @param semester - The semester when the course should be taken
	 * @param year - The year level when the course should be taken
	 */
	public CurriculumCourse(String courseCode, Curriculum curriculum, int semester, int year){
		this.courseCode = courseCode;
		this.curriculum = curriculum;
		this.semester = semester;
		this.year = year;
	}


	/**
	 * Gets the curriculum to which the course is used
	 * 
	 * @return 	The curriculum to which the course is used
	 */
	public Curriculum getCurriculum() {
		return curriculum;
	}


	/**
	 * Sets the curriculum to which the course is used
	 * 
	 * @param curriculum - The curriculum to which the course is used
	 */
	public void setCurriculum(Curriculum curriculum) {
		this.curriculum = curriculum;
	}

}
